package com.bac.rentmap.ad.flat.crawler.irrby;

import org.springframework.beans.factory.annotation.Required;

import com.bac.rentmap.ad.crawler.Context;
import com.bac.rentmap.ad.crawler.stepped.SteppedAdCrawler;
import com.bac.rentmap.ad.crawler.stepped.predicate.AbstractPredicateAdCrawler;
import com.bac.rentmap.ad.flat.crawler.FlatCrawledAd;
import com.bac.rentmap.ad.flat.crawler.ParsingHelper;
import com.bac.rentmap.ad.util.DateHelper;

public class IrrByAdCrawler extends AbstractPredicateAdCrawler<FlatCrawledAd> {
    private ParsingHelper parsingHelper;
    private DateHelper dateHelper;
    @Override
    protected SteppedAdCrawler<FlatCrawledAd> buildSteppedAdCrawler(
            Context context) {
        IrrBySteppedAdCrawler res = new IrrBySteppedAdCrawler(context);
        res.setParsingHelper(parsingHelper);
        res.setDateHelper(dateHelper);
        return res;
    }
    @Required
    public void setParsingHelper(ParsingHelper parsingHelper) {
        this.parsingHelper = parsingHelper;
    }
    @Required
    public void setDateHelper(DateHelper dateHelper) {
        this.dateHelper = dateHelper;
    }
}
